<template>
	<view class="">
		分类页面
		<button @click="remove">删除</button>
		<view>----------</view>
		<button @click="select">学历</button>
	</view>
</template>

<script setup>
	uni.showNavigationBarLoading()
	setTimeout(()=>{
		uni.setNavigationBarTitle({
			title: "动态标题",
		});
		uni.hideNavigationBarLoading()
	}, 2000)

	function remove() {
		uni.showModal({
			title: '删除确认',
			content: '确定要删除数据吗?',
			editable: true,
			success: function(res) {
				console.log(res)
			}
		});
	}
	
	onShow(()=>{
		uni.removeTabBarBadge({
		  index: 1
		})
	})

	function select() {
		uni.showActionSheet({
			title: '请选择学历',
			alertText: '学历警示',
			itemList: ['高中', '大专', '本科', '研究生'],
			itemColor: '#ffff00',
			success: function(res) {
				console.log('选中', res)
				console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
			},
			fail: function(res) {
				console.log(res.errMsg);
			}
		});
	}
</script>

<style lang='scss' scoped>

</style>